package com.assistant.wechat.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "message")
public class Message implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String send_id;
    private String receive_id;
    private String content;
    private String create_time;
    private String room_id;
    private Integer status;  //消息的状态

}
